]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
StEntry: fix crash when hint actor is NULL
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Tue, 12 Sep 2017 10:23:46 +0000 (12:23 +0200)
committerMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Tue, 12 Sep 2017 19:39:30 +0000 (21:39 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=787580

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
src/st/st-entry.c

index fc9ffbffdedb8de66184e3f7b9fc0ea470e7457e..18e6a257d78edc6cf7e1f1f90e936d594cadb97c 100644 (file)
@@ -1106,7 +1106,7 @@ st_entry_get_text (StEntry *entry)
   g_return_val_if_fail (ST_IS_ENTRY (entry), NULL);
 
   priv = st_entry_get_instance_private (entry);
-  if (clutter_actor_is_visible (priv->hint_actor))
+  if (priv->hint_actor != NULL && clutter_actor_is_visible (priv->hint_actor))
     return "";
   else
     return clutter_text_get_text (CLUTTER_TEXT (priv->entry));